package org.itstack.demo.design.domain.service.logic;

import org.itstack.demo.design.domain.model.vo.TreeNodeLink;

import java.util.List;
import java.util.Map;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-20  09:46
 * @Description: 逻辑决策器
 */
public interface LogicFilter {
    /**
     * 逻辑决策器
     * @param matterValue 决策值
     * @param treeNodeLinkList 决策节点
     * @return 下一个节点Id
     */
    Long filter(String matterValue, List<TreeNodeLink> treeNodeLinkList);

    /**
     * 过去决策值
     * @param treeId 规则树ID
     * @param userId 用户ID
     * @param decisionMatter 决策物料
     * @return 决策值
     */
    String matterValue(Long treeId, String userId, Map<String,String> decisionMatter);
}
